// UpdateDlg.h : Declaration of the CUpdateDlg

#pragma once

/**
 * Update Dialog.
 */
class CUpdateDlg : public CDialogImpl<CUpdateDlg>
{
public:
	CUpdateDlg()
	{
	}

public:
	enum { IDD = IDD_UPDATE };

BEGIN_MSG_MAP_EX(CUpdateDlg)
	MSG_WM_INITDIALOG(OnInitDialog)
	COMMAND_HANDLER_EX(IDOK, BN_CLICKED, OnClicked)
	COMMAND_HANDLER_EX(IDCANCEL, BN_CLICKED, OnClicked)
END_MSG_MAP()

protected:
	LRESULT OnInitDialog(HWND, LPARAM)
    {
        CIconHandle icoLogo;
        if (icoLogo.LoadIcon(IDI_LOGO, 32, 32))
            SetIcon(icoLogo);

        CIconHandle icoSmallLogo;
        if (icoSmallLogo.LoadIcon(IDI_LOGO, 16, 16))
            SetIcon(icoSmallLogo, FALSE);

        return 1;  // Let the system set the focus
    }

	LRESULT OnClicked(WORD wNotifyCode, WORD wID, HWND hWndCtl)
	{
		EndDialog(wID);
		return 0;
	}
};


